package org.feiye.studyday23;

public class StringTest1 {
	public static void main(String[] args) {
		String str = "我是姚明，我爱我的祖国";
		String str2 = "我";
		System.out.println(str.lastIndexOf(str2));
		System.out.println(">>>>>>>>>>>><<<<<<<<<<<<<<<>>>>>>>>>>>>>><<<<<<<>>>>>>");
		String dog = "This is a dog!";
		String[] split = dog.split(" ");
		for (String string : split) {
			System.out.println(string);
		}
	}
}
